home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / program / n_b_v203.zip / QERYPRNT.DMO < prev    next >
Text File  |  1996-07-04  |  2KB  |  39 lines

  1. $if 0
  2.     ┌──────────────────────────╖                        PowerBASIC v3.20
  3.  ┌──┤          DASoft          ╟──────────────────────┬──────────────────╖
  4.  │  ├──────────────────────────╢    Copyright 1995    │ DATE: 1995-10-01 ╟─╖
  5.  │  │ FILE NAME   QERYPRNT.DMO ║          by          ╘════════════════─ ║ ║
  6.  │  │                          ║  Don Schullian, Jr.                     ║ ║
  7.  │  ╘══════════════════════════╝                                         ║ ║
  8.  │ A license is hereby granted to the holder to use this source code in  ║ ║
  9.  │ any program, commercial or otherwise,  without receiving the express  ║ ║
  10.  │ permission of the copyright holder and without paying any royalties,  ║ ║
  11.  │ as long as this code is not distributed in any compilable format.     ║ ║
  12.  │  IE: source code files, PowerBASIC Unit files, and printed listings   ║ ║
  13.  ╘═╤═════════════════════════════════════════════════════════════════════╝ ║
  14.    │                ....................................                   ║
  15.    ╘═══════════════════════════════════════════════════════════════════════╝
  16. $endif
  17.  
  18. $INCLUDE "DAS-NB01.INC"
  19. $INCLUDE "DAS-NB02.INC"
  20. $INCLUDE "DAS-NBT1.INC"
  21.  
  22. CLS
  23. ? "┌───────────────────────────────────────────────────────────────────────
  24. ? "│ fQueryPrint$ ( Row?, Col?, Cols?, Mask$, Answer$ )
  25. ? "├─────────────────────────────────────────────────────────────────────────
  26. ? "│ TINPUT_Q is the function that handles the QUERY mini-menu inputs. This
  27. ? "│ function allows external access to it's logic to print the answers.
  28. ? "│ A mask string like: YNM|YES|NO|MAYBE is fed into fQueryPrint$ with an
  29. ? "│ answer (or null) and the function will pop out the string to be printed.
  30. ? "│ If Row? > 0 then the string will be automatically printed to the Row?
  31. ? "│ Col? and Cols? indicated but if Row? = 0 then no printing will be done.
  32. ? "└─────────────────────────────────────────────────────────────────────────────
  33.  
  34. Mask$ = "YNM|Yes|No|Maybe"              ' the mask with answers & strings
  35.                                         '
  36. fQueryPrint 12, 1, 5, Mask$, "M"        ' automatic printing of answer
  37.                                         '
  38. P$ = fQueryPrint$( 0, 0, 0, Mask$, "" ) ' just extract the answer for the
  39. Tprint 13, 1, P$, 14                    ' default NULL then print it yourself